import { defineStore } from "pinia";

export const useStore = defineStore("main", {
    state: () => {
        return {
            addrLength: 0,
            searchVal: "",
            likelength: 0,
        };
    },
    getters: {},
    actions: {
        getSearchVal(value: string) {
            this.searchVal = value;
        },
        getAddrLength(value: number) {
            this.addrLength = value;
        },
        getLikeLength(value: number) {
            this.likelength = value;
        },
    },
});
